package com.mijie.homi.dao.mood;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.mijie.core.IBatisDao;
import com.mijie.homi.domain.mood.MoodPushObject;

@Repository
public class MoodPushQueueDao extends IBatisDao {

	public int putToMoodPushQueue(MoodPushObject obj){
		return this.insert("putToMoodPushQueue", obj);
	}
	
	public List<MoodPushObject> pullFromMoodPushQueue(int size){
		return this.selectList("pullFromMoodPushQueue", size);
	}
	
	public void removeFromMoodPushQueue(String id){
		this.delete("removeFromMoodPushQueue", id);
	}
}
